package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSgazhtFjMapper;
import com.ruoyi.gcgl.domain.GcProjectSgazhtFj;
import com.ruoyi.gcgl.service.IGcProjectSgazhtFjService;
import com.ruoyi.common.core.text.Convert;

/**
 * 施工安装合同附件Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-22
 */
@Service
public class GcProjectSgazhtFjServiceImpl implements IGcProjectSgazhtFjService 
{
    @Autowired
    private GcProjectSgazhtFjMapper gcProjectSgazhtFjMapper;

    /**
     * 查询施工安装合同附件
     * 
     * @param id 施工安装合同附件主键
     * @return 施工安装合同附件
     */
    @Override
    public GcProjectSgazhtFj selectGcProjectSgazhtFjById(Long id)
    {
        return gcProjectSgazhtFjMapper.selectGcProjectSgazhtFjById(id);
    }

    /**
     * 查询施工安装合同附件列表
     * 
     * @param gcProjectSgazhtFj 施工安装合同附件
     * @return 施工安装合同附件
     */
    @Override
    public List<GcProjectSgazhtFj> selectGcProjectSgazhtFjList(GcProjectSgazhtFj gcProjectSgazhtFj)
    {
        return gcProjectSgazhtFjMapper.selectGcProjectSgazhtFjList(gcProjectSgazhtFj);
    }

    /**
     * 新增施工安装合同附件
     * 
     * @param gcProjectSgazhtFj 施工安装合同附件
     * @return 结果
     */
    @Override
    public int insertGcProjectSgazhtFj(GcProjectSgazhtFj gcProjectSgazhtFj)
    {
        return gcProjectSgazhtFjMapper.insertGcProjectSgazhtFj(gcProjectSgazhtFj);
    }

    /**
     * 修改施工安装合同附件
     * 
     * @param gcProjectSgazhtFj 施工安装合同附件
     * @return 结果
     */
    @Override
    public int updateGcProjectSgazhtFj(GcProjectSgazhtFj gcProjectSgazhtFj)
    {
        return gcProjectSgazhtFjMapper.updateGcProjectSgazhtFj(gcProjectSgazhtFj);
    }
    
    @Override
    public int updateGcProjectSgazhtFj4type(GcProjectSgazhtFj gcProjectSgazhtFj)
    {
        return gcProjectSgazhtFjMapper.updateGcProjectSgazhtFj4type(gcProjectSgazhtFj);
    }

    /**
     * 批量删除施工安装合同附件
     * 
     * @param ids 需要删除的施工安装合同附件主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtFjByIds(String ids)
    {
        return gcProjectSgazhtFjMapper.deleteGcProjectSgazhtFjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除施工安装合同附件信息
     * 
     * @param id 施工安装合同附件主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtFjById(Long id)
    {
        return gcProjectSgazhtFjMapper.deleteGcProjectSgazhtFjById(id);
    }
}
